#ifndef STRUCTS_H
#define STRUCTS_H
//--------------------------------------------------------------------------------
#include <windows.h>
#include <d3dx9.h>
//--------------------------------------------------------------------------------
#define COLOR_VERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE)
struct ColorVertex
{
		float x, y, z;
		DWORD color;
};
//--------------------------------------------------------------------------------
enum MatrixMode
{
	world = D3DTS_WORLDMATRIX(0),
	view = D3DTS_VIEW,
	projection = D3DTS_PROJECTION
};
//--------------------------------------------------------------------------------
enum PrimitiveType
{
	TriangleList = 0,
	TriangleStrip,
	PointList,
    LineList,
    LineStrip,
	TriangleFan,
	PrimitiveCount
};
//--------------------------------------------------------------------------------
#define TEXTURE_VERTEX (D3DFVF_XYZ|D3DFVF_TEX1|D3DFVF_TEXCOORDSIZE2(0))
struct TextureVertex
{
	float x,y,z;
	float u,v;
};
//--------------------------------------------------------------------------------
#endif